package com.example.autumn.service.impl;

import com.example.common.Entity.User;
import com.example.common.response.R;
import com.example.feign.clients.UserClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author Liaorun
 */
@Service
public class TestServiceImpl {

    @Resource
    private UserClient userClient;

    public R<User> getUserFromUserCenter(Long id) {
        R<User> result = userClient.findById(id);

        return result;
    }
}
